#import <Cocoa/Cocoa.h>
#import "RNLayoutViewProtocol.h"

extern NSString* const RNToolbarFlexibleSpaceButtonIdentifier;
@class RNLayoutHelper;
@class RNToolbar;

@interface RNToolbarButton : NSButton <RNLayoutView, NSValidatedUserInterfaceItem> {
    RNToolbar *toolbar_;
    NSString *identifier_;
    RNLayoutHelper *layoutHelper_;
}

+(RNToolbarButton *)flexibleSpaceButton;
-(id)initWithIdentifier:(NSString *)identifier withTitle:(NSString *)title withImageNamed:(NSString *)imageName withAction:(SEL)action;
@property (assign) IBOutlet RNToolbar *toolbar;
@property (retain) RNLayoutHelper *layoutHelper;
@property (copy) NSString *identifier;

@end
